// 首页

#homeSwiper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
}

.home-thead {
  text-align: center;
  position: relative;
  margin: 0 10px;
  .name {
    line-height: 40px;
    h3 {
      font-size: 18px;
      color: #33840b;
      font-weight: bold;
    }
  }
  .desc {
    line-height: 30px;
    font-size: 14px;
    color: #33840b;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    span {
      margin: 0 10px;
    }
    &::before,
    &::after {
      content: '';
      width: 2em;
      border-top: 1px solid #33840b;
    }
  }
}


.home-boutique {
  margin: 10px 10px 20px;
  .tabs {
    text-align: center;
    margin: 20px 0;
    .item {
      display: inline-flex;
      height: 40px;
      line-height: 40px;
      padding: 0 10px;
      margin: 0 2px;
      border-radius: 3px;
      background: #f2f2f2;
      cursor: pointer;
      &.is-active {
        background-color: #33840b;
        color: #fff;
      }
    }
  }
  .tbody {
    text-align: center;
    .swiper-slide {
      background: #fff;
      overflow: hidden;
      border-radius: 8px;
    }
    .img {
      width: 100%;
      height: 100%;
      img {
        width: 100%;
        object-fit: cover;
        aspect-ratio: 1 / 1;
        background: #eee;
      }
    }
    .exp {
      padding: 5px;
    }
    .name {
      line-height: 30px;
      font-size: 16px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .price {
      line-height: 20px;
      font-size: 16px;
      color: #d00;
    }
  }
}

.home-company {
  position: relative;
  padding: 10px 10px 20px;
  .tbody {
    .rich {
      line-height: 1.8;
      text-align: justify;
      img {
        display: block;
        width: 100%;
        margin: 10px 0;
      }
    }
  }
}

.home-contact {
  padding: 10px 10px 20px;
  position: relative;
  text-align: center;
  .title {
    font-size: 18px;
    font-weight: bold;
    color: #33840b;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    background: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    img {
      width: 20px;
      height: 20px;
      margin-right: 10px;
    }
    span {
      font-size: 12px;
      color: #33840b;
      font-weight: bold;
    }
  }
}


// 个人中心

.user-profile {
  position: relative;
  overflow: hidden;
  z-index: 1;
  .bg {
    position: absolute;
    left: -20vw;
    right: -20vw;
    top: 0;
    bottom: 0;
    background: url('../icon/0.png') center center no-repeat #0e9744;
    background-size: cover;
    border-radius: 0 0 50% 50%;
  }
  .inner {
    position: relative;
    z-index: 1;
    padding: 60px 20px 100px;
    color: #fff;
    display: flex;
    align-items: center;
    .avatar {
      position: relative;
      width: 80px;
      height: 80px;
      .img {
        overflow: hidden;
        border-radius: 50%;
        border: 2px solid #fff;
        img {
          width: 100%;
          height: auto;
        }
      }
      .icon {
        position: absolute;
        top: -20px;
        right: -20px;
        transform: rotate(45deg);
        img {
          display: block;
          width: 40px;
          height: 40px;
        }
      }
    }
    .exp {
      flex: 1;
      margin-left: 20px;
    }
    .name {
      margin-top: 10px;
      line-height: 30px;
      font-size: 20px;
      font-weight: bold;
    }
    .tags {
      margin-top: 5px;
      font-size: 14px;
      display: flex;
      flex-wrap: wrap;
      dd {
        padding: 5px 10px;
        border: 1px solid #fff;
        border-radius: 6px;
        margin-right: 10px;
        font-size: 12px;
      }
    }
    .int {
      display: flex;
      align-items: center;
      margin-top: 10px;
      dd {
        display: flex;
        align-items: center;
        border-radius: 5px;
        padding: 5px 10px;
        white-space: nowrap;
        & + dd {
          margin-left: 8px;
        }
        &.vip {
          background: #fff;
          color: #039e63;
        }
        &.svip {
          background: #f3c638;
          color: #fff;
        }
      }
      img {
        display: block;
        height: 16px;
        margin-right: 5px;
      }
      span {
        font-size: 12px;
        font-weight: bold;
      }
    }
  }
  .share {
    position: absolute;
    right: 0;
    top: 40px;
    line-height: 40px;
    padding: 0 15px;
    border-radius: 40px 0 0 40px;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    img {
      display: block;
      width: 16px;
      height: 16px;
      margin-right: 10px;
    }
    span {
      font-size: 14px;
    }
  }
}

.user-thead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  .name {
    line-height: 40px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
  }
  .icon {
    display: flex;
    align-items: center;
    img {
      width: 20px;
      height: 20px;
      margin-right: 10px;
    }
    span {
      font-size: 14px;
      color: #999;
    }
  }
}

.user-account {
  position: relative;
  z-index: 2;
  margin: -80px 10px 0;
  border-radius: 8px;
  .inner {
    border: 1px solid #eee;
    background: #fff;
    padding: 5px 10px 10px;
    border-radius: 10px;
  }
  .tbody {
    display: flex;
    text-align: center;
    margin-top: 6px;
    .rows {
      flex: 1;
      strong {
        display: block;
        line-height: 20px;
        font-size: 18px;
        color: #0e9744;
      }
      span {
        display: block;
        line-height: 20px;
        color: #999;
      }
    }
  }
}


.user-order {
  padding: 15px 10px;
  .tbody {
    display: flex;
    align-items: center;
    text-align: center;
    .rows {
      flex: 1;
      img {
        width: 40px;
        height: 40px;
      }
      span {
        display: block;
        line-height: 20px;
        color: #999;
      }
    }
  }
}

.user-service {
  padding: 15px 10px;
  .tbody {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    .rows {
      width: 25%;
      margin: 10px 0;
      img {
        width: 40px;
        height: 40px;
      }
      span {
        display: block;
        line-height: 20px;
        color: #999;
      }
    }
  }
}

.share-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  .mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: fade(#000, 70%);
  }
  .layer {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
  }
  .thead {
    h3 {
      line-height: 40px;
      font-size: 16px;
      font-weight: bold;
    }
  }
  .tbody {
    .img {
      img {
        width: 200px;
        height: 200px;
      }
    }
    .desc {
      p {
        line-height: 30px;
      }
      h4 {
        line-height: 30px;
        font-weight: bold;
        color: #33840b;
      }
    }
  }
}


// 余额
.balance-show {
  position: relative;
  z-index: 2;
  margin: -80px 10px 0;
  border-radius: 8px;
  .inner {
    background: #fff;
    padding: 5px 10px 10px;
    border-radius: 10px;
  }
  .thead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    .name {
      line-height: 25px;
      font-size: 16px;
      font-weight: bold;
      color: #000;
      display: flex;
      flex-direction: column;
    }
    .icon {
      display: flex;
      align-items: center;
      img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
      }
      span {
        font-size: 14px;
        color: #999;
      }
    }
  }
  .tbody {
    display: flex;
    text-align: center;
    gap: 20px;
    margin: 6px 10px 10px;
    .rows {
      flex: 1;
      span {
        display: block;
        height: 40px;
        line-height: 40px;
        border-radius: 5px;
        background: #bfbfbf;
        color: #fff;
        &.btn-1 {
          background: #009944;
        }
        &.btn-2 {
          background: #f39800;
        }
      }
    }
  }
}

.balance-basic {
  padding: 10px;
  .thead {
    border-bottom: 1px solid #ddd;
    display: flex;
    .name {
      line-height: 40px;
      font-size: 16px;
      font-weight: bold;
      color: #000;
      border-bottom: 3px solid #33840b;
      margin-bottom: -1px;
    }
  }
  .tbody {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    .rows {
      flex: 1;
      background: #0e9744;
      color: #fff;
      border-radius: 5px;
      padding: 20px;
      strong {
        display: block;
        line-height: 40px;
        font-size: 20px;
      }
    }
  }
}

.balance-links {
  margin: 20px 0 0 0;
  .tbody {
    .rows {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 10px 0;
      background: #eeeeee;
      span {
        display: block;
        height: 40px;
        line-height: 40px;
        padding: 0 0 0 10px;
      }
      i {
        display: block;
        width: 40px;
        height: 40px;
        background: url('../icon/23.png') no-repeat center center #f39800;
        background-size: 36px;
      }
    }
  }
}



// 续费
.user2-profile {
  background: #0e9744;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  .inner {
    position: relative;
  }
  .avatar {
    .img {
      img {
        display: block;
        margin: 0 auto;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 2px solid #fff;
      }
    }
  }
  .exp {
    .name {
      line-height: 40px;
      font-weight: bold;
      font-size: 20px;
    }
  }
}

.renew-tabs {
  margin: 10px;
  overflow: hidden;
  .list {
    margin: 0 -15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ee7f27;
    color: #fff;
    .rows {
      flex: 1;
      transform: skewX(-30deg);
      &:nth-child(1) {
        background: #33840b;
        color: #fff;
        border-right: 6px solid #fff;
      }
      &:nth-child(3) {
        background: #000;
        color: #fff;
        border-left: 6px solid #fff;
      }
      span {
        display: block;
        height: 50px;
        line-height: 50px;
        padding: 0 10px;
        font-weight: bold;
        text-align: center;
        transform: skewX(30deg);
      }
    }
  }
}

.renew-info {
  margin: 40px 0 0;
  .list {
    text-align: center;
    .rows {
      display: inline-block;
      height: 40px;
      line-height: 40px;
      padding: 0 20px;
      border-radius: 40px;
      background: #000;
      color: #fff;
      img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
      }
      span {
        font-size: 16px;
      }
    }
    .rows2 {
      margin: 20px;
      position: relative;
      text-align: center;
      span {
        display: block;
        line-height: 40px;
        font-size: 20px;
        font-weight: bold;
        &.t1 {
          position: absolute;
          top: 0;
          left: 0;
          bottom: 0;
          font-size: 16px;
          font-weight: normal;
        }
      }
    }
  }
}



// 分类
.category-search {
  position: sticky;
  top: 0;
  height: 60px;
  z-index: 10;
  .inner {
    padding: 10px;
    background: #009944;
  }
  .search {
    position: relative;
  }
  .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    margin-top: -10px;
    width: 20px;
    height: 20px;
  }
  .input {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 10px 0 40px;
    box-sizing: border-box;
    background: #fff;
    border: 0;
    border-radius: 5px;
  }
}

.category-content {
  position: relative;
}

.category-nav {
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  background: #fff;
  z-index: 10;
  overflow: hidden;
  overflow-y: auto;
  width: 90px;
  .list {}
  .item {
    & + .item {
      border-top: 1px solid #f2f2f2;
    }
    &.is-active {
      border-left: 2px solid #33840b;
    }
  }
  .cell {
    padding: 15px 10px;
    line-height: 20px;
    text-align: center;
  }
}

.category-data {
  position: relative;
  margin-left: 90px;
  .list {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
  }
  .thead {
    width: 100%;
    line-height: 20px;
    font-weight: bold;
    color: #000;
    font-size: 15px;
    padding: 10px;
  }
  .item {
    width: 50%;
    .cell {
      margin: 5px;
      position: relative;
      overflow: hidden;
      border-radius: 5px;
      background: #fff;
    }
    .img {
      img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        background: #eee;
      }
    }
    .exp {
      padding: 8px 5px;
    }
    .name {
      height: 20px;
      line-height: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #000;
    }
    .price {
      margin-top: 5px;
      height: 20px;
      line-height: 20px;
      color: #d00;
      font-weight: bold;
      &::first-letter {
        font-size: 12px;
      }
    }
  }
}



// GS
.gs-thead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  .name {
    line-height: 30px;
    font-weight: bold;
    color: #fff;
  }
  .number {
    line-height: 30px;
    display: flex;
    align-items: center;
    color: #fff;
    img {
      display: block;
      width: 20px;
      height: 20px;
      margin-right: 5px;
    }
  }
}

.gs-tbody {
  position: relative;
  padding: 10px;
  margin: 40px 0 0;
  .name {
    line-height: 30px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      display: block;
      width: 40px;
      height: 40px;
      margin-right: 15px;
    }
    span {
      padding: 10px 20px;
      background: #aeef83;
      color: #fff;
      border-radius: 10px;
    }
  }
  .tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 40px;
    border: 1px solid #fff;
    padding: 3px;
    border-radius: 10px;
    color: #fff;
    dd {
      flex: 1;
      text-align: center;
      border-radius: 8px;
      height: 40px;
      line-height: 40px;
      &.is-active {
        background: #000;
      }
    }
  }
  .content {
    margin: 20px 20px 0;
  }
  .des {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 20px 0 20px 0;
    img {
      width: 100px;
    }
    h3 {
      line-height: 50px;
      font-size: 30px;
      font-weight: bold;
    }
    p {
      line-height: 30px;
    }
  }
  .mo {
    border: 1px solid #fff;
    color: #fff;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    line-height: 25px;
    margin-bottom: 10px;
  }
  .mo2 {
    display: flex;
    gap: 10px;
    dd {
      flex: 1;
      border: 1px solid #fff;
      color: #fff;
      border-radius: 6px;
      padding: 10px;
      text-align: center;
      line-height: 25px;
    }
  }
}